// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-9-20

#ifndef __DRAGGER_H_COMMON_UI_
#define __DRAGGER_H_COMMON_UI_

#pragma once
#include "wnd.h"

class CJoyDraggerFloat;

//##ModelId=44CF17B801B5
class CJoyDragger :
    public CJoyWnd
{
	DECLARE_DYNAMIC(CJoyDragger)

protected:
	//##ModelId=44CF17B801B7
    bool    m_dragBegin;
	//##ModelId=44CF17B801B8
    CPoint  m_dragOrig;
	//##ModelId=44CF17B801BA
    CJoyDraggerFloat*   m_draggerFloat;

	//##ModelId=44CF17B801C5
    virtual void CM_MouseHover();
	//##ModelId=44CF17B801C7
    virtual void CM_MouseLeave();
	//##ModelId=44CF17B801C9
    virtual void CM_Mouse(MouseMessage msg, const CPoint& pt);
	//##ModelId=44CF17B801D4
    virtual void CM_Drag(const CPoint& p);

public:
	//##ModelId=44CF17B801D8
    Color   m_dragColor;
	//##ModelId=44CF17B801DC
    CRect   m_floatMargin;
public:
	//##ModelId=44CF17B801DE
    CJoyWnd*    m_attachWnd;

	//##ModelId=44CF17B801E7
    CJoyDragger(void);
	//##ModelId=44CF17B801E9
    virtual ~CJoyDragger(void);

public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44CF17B801EC
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//##ModelId=44CF17B801F4
    afx_msg void OnDestroy();
};

#endif  // __DRAGGER_H_COMMON_UI_
